<template>
  <div>
    <div class="banner" @click="handelBannerClick">
      <img
        class="banner-img"
        src="//img1.qunarzz.com/sight/p0/1501/f4/f467729126949c3a.water.jpg_600x330_371120bc.jpg"/>
      <div class="banner-info">
        <div class="banner-title">南宫温泉水世界(AAAA景区)</div>
        <div class="banner-number"><span class="iconfont baner-icon">&#xe632</span>23</div>
      </div>
    </div>
    <common-gallary :imgs="imgs" v-show="showGallary" @close="handelGallaryClose"></common-gallary>
  </div>
</template>

<script>
import CommonGallary from 'common/gallary/Gallary'
export default {
  name:'DetailBanner',
  data(){
    return{
      showGallary:false,
     imgs:['http://img1.qunarzz.com/sight/p0/1503/dc/dc651cd2e01fb900.img.jpg_r_800x800_9250b7ab.jpg','http://img1.qunarzz.com/sight/p0/1503/dc/dc651cd2e01fb900.img.jpg_r_800x800_9250b7ab.jpg']
    }
  },
  methods:{
    handelBannerClick(){
      this.showGallary=true
    },
    handelGallaryClose(){
      this.showGallary=false
    }
  },
  components:{
    CommonGallary
  }

}
</script>


<style scoped>
.banner{
  position: relative;
  overflow: hidden;
  height:0;
  padding-bottom:55%;
}
  .banner-img{
    width:100%;
  }
  .banner-info{
    display: flex;
    position: absolute;
    left:0;
    right:0;
    bottom: 0;
    line-height:.6rem;
    color:#fff;
  }
  .banner-title{
    flex:1;
    font-size:.32rem;
    padding:0 .2rem;
  }
  .banner-number{
    margin-top:.14rem;
    padding:0 .4rem;
    line-height:.32rem;
    height:.32rem;
    font-size:.24rem;
    border-radius: .2rem;
    background: rgba(0,0,0,.8);
  }
  .baner-icon{
    font-size:.24rem;
  }
</style>
